package entityBean;

import java.util.List;

import javax.persistence.*;

/**
 * Entity implementation class for Entity: Fondateur
 *
 */
@Entity
@DiscriminatorValue("1")
public class Fondateur extends Investisseur {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	//bi-directional one-to-one association to Startup
	@OneToOne(cascade=CascadeType.ALL,mappedBy="investisseur", fetch=FetchType.LAZY )
	private Startup startup;
	

	

	public Fondateur(int capital, String email, String login, String nom,
			String passWord, String type_inv, List<Participation> participations) {
		super(capital, email, login, nom, passWord, type_inv, participations);
		// TODO Auto-generated constructor stubt
		
	}

	public Fondateur() {
		super();
	}

	public void setStartup(Startup startup) {
		this.startup = startup;
	}

	public Startup getStartup() {
		return startup;
	}   
	
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return super.toString();
	}

}
